package com.liwalla.domain;

import javax.persistence.Entity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.entity.RooEntity;
import java.math.BigInteger;
import javax.validation.constraints.NotNull;
import com.liwalla.domain.Parent;
import javax.persistence.ManyToOne;
import javax.persistence.JoinColumn;

@Entity
@RooJavaBean
@RooToString
@RooEntity
public class Friend {

    @NotNull
    private BigInteger id;

    @NotNull
    @ManyToOne(targetEntity = Parent.class)
    @JoinColumn
    private Parent me;

    @NotNull
    @ManyToOne(targetEntity = Parent.class)
    @JoinColumn
    private Parent friend;
}
